package com.tech.tool.service;

import com.tech.tool.dataobject.ApiReview;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface ApiReviewService {

    ApiReview findOne(Integer apiId);

    Page<ApiReview> findByProjectId(Integer projectId, Pageable pageable);

    ApiReview save(ApiReview apiReview);

    ApiReview updateStatus(Integer apiReviewId, Integer status);

    Page<ApiReview> findByProjectIdAndUserIdAndApiName(Integer projectId, Integer userId, String apiName, Pageable pageable);

    ApiReview delete(Integer apiReviewId, Integer delete);
}
